//
// Created by 郝正辉 on 2020/11/22.
//

#ifndef C_TEST_QUEUE_H
#define C_TEST_QUEUE_H

#include <stdlib.h>
#include "list.h"

typedef List Queue;
#define queue_init list_init
#define queue_destroy list_destroy

int queue_enqueue(Queue *queue, const void *data);

int queue_dequeue(Queue *queue, void **data);

#define queue_peek(queue) ((queue)->head==NULL?NULL :(queue)->head->data)
#define queue_size list_size

#endif //C_TEST_QUEUE_H
